package d0330;
import java.util.Scanner;
public class AddTest {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        Double dou=0.0;
        Double sum=0.0;
        String str1="";
        while(true){
            str1=sc.next();
            str1.split(" ");
            if (str1.equals("exit")){
                break;
            }
            dou=Double.valueOf(str1);
            sum=sum+dou;
        }
        System.out.println("累加结果为:"+sum);
    }
}

